package com.base.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.base.service.UserService;

@RestController
@RequestMapping("/cache")
public class SpringCacheController {

	@Autowired
	private UserService userService;
	
	@GetMapping("/test1")
	public String cacheTest() {
		
		return userService.cacheTest();
	}
	
	@GetMapping("/test2")
	public String cacheTest2() {
		
		return userService.cacheTTLTest();
	}
	
	
}
